import http from "@/utils/http";

export default {
  namespaced: true,

  state: {
    basicList: []
  },
  getters: {
    conf_time(state) {
      let n = state.basicList.conf_time;
      return n;
    }
  },

  mutations: {
    SETBASICLIST(state, list) {
      state.basicList = list;
    }
  },

  actions: {
    getBasicList({ commit }) {
      let token=sessionStorage.getItem('token')
      http
        .post(
          `/api/login/basis_set/info?token=${token}`,
          {
            room_number: 10086
          }
        )
        .then(response => {
          // console.log(response);
          let res = response.data.data;
          commit("SETBASICLIST", res);
        });
    }
  }
};
